Total Fees Collected Per Denom
Queries the total amount of fees collected by the VLP for the specified token denomination.
query Vlp($contract: String, $pair: PairInput, $denom: String!) {
vlp(contract: $contract, pair: $pair) {
total_fees_collected_per_denom(denom: $denom) {
lp_fees
euclid_fees
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Total_fees_collected_per_denom($denom: String!, $contract: String!) {\n vlp(contract: $contract) {\n total_fees_collected_per_denom(denom: $denom) {\n lp_fees\n euclid_fees\n }\n }\n}","variables":{"contract":"nibi1pys22jem6l222sxhexe7dmggtz8xkmhm49p7z3wjgrcdk3t46hgsle088m","denom":"stars"}}'
Arguments
Argument | Type | Description |
---|---|---|
contract | String | The contract address of the VLP. Required if pair is not provided. |
pair | PairInput | The pair of tokens belonging to the VLP. Required if contract is not provided. |
denom | String! | The token Id of the token to get the total fees for. |
Return Fields
Field | Type | Description |
---|---|---|
lp_fees | LpFees | The total amount of fees collected by liquidity providers for this denom. |
euclid_fees | EuclidFees | The total amount of fees collected by Euclid protocol for this denom. |